package com.hyh.spring.service;

import com.hyh.spring.common.Result;
import com.hyh.spring.model.Payment;
import org.springframework.stereotype.Component;

/**
 * @BelongsPackage: com.hyh.spring.service
 * @ClassName PaymentFallbackService
 * @Author: hyhWTX
 * @CreateTime: 2023-06-03  19:32
 * @Description: TODO (一句话描述以下该类的功能)
 * @Version: 1.0
 */
@Component
public class PaymentFallbackService implements PaymentService
{
    @Override
    public Result<Payment> paymentSQL(Long id)
    {
        return new Result<>(44444,"服务降级返回,---PaymentFallbackService",new Payment(id,"errorSerial"));
    }
}